<?php
include '../common.php';
$id = $_GET['delete'];
$sql  = "SELECT * FROM user where id = '$id'";
$row = select($sql,$DB);
if (!$row) {
	exit('参数有误');
}
$sql = "DELETE FROM user WHERE id = $id ";
$row = delete($sql,$DB);
if (!$row) {
	exit('删除失败');
}
header("location:user.php",302);